//
//  ModelOfAppearanceCommunityGroup.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/12.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfAppearanceCommunityGroup.h"
#import "ModelOfAppearanceCommunityGroupTypes.h"
@implementation ModelOfAppearanceCommunityGroup
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr = [NSMutableArray array];
    if ([key isEqualToString:@"id"]) {
        self.ID = [value integerValue];
    }if ([key isEqualToString:@"types"]) {
        for (NSDictionary *dic in value) {
            ModelOfAppearanceCommunityGroupTypes *model = [ModelOfAppearanceCommunityGroupTypes modelWithDic:dic];
            [arr addObject:model];
        }
        self.types = arr;
    }if ([key isEqualToString:@"description"]) {
        self.Description = value;
    }
}
@end
